package com.heima.tuozhan.day01.Poultry;

public class Cock extends Poultry {
    public Cock() {
    }

    public Cock(String color, int age) {
        super(color, age);
    }

    @Override
    void eat() {
        System.out.println(getAge()+"岁的"+getColor()+"色公鸡在啄米");
    }
    void crow(){
        System.out.println(getAge()+"岁的"+getColor()+"色公鸡在打鸣");
    }
}
